Component({
  /**
   * 组件的属性列表
   */
  properties: {
    item: Object
  },

  data: {

  },

  methods: {
    onSelect(event){
      this.triggerEvent('selectevent', 
        { bookID: event.currentTarget.dataset.id },
        { bubbles: true, composed: true })
    },

    onNumChange(event){
      var data = event.currentTarget.dataset
      this.triggerEvent('numchange', 
        { 
          changeType: data.type,
          bookID: data.id
        },
        { bubbles: true, composed: true }) 
    }
  }
})
